-- GENERATED SPELL FOR [Ironforge Guard] --


function spell0_5595(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5595', 30274, 1)
end

function spell1_5595(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_5595', 10335, 1)
end

function Sorts_5595(pUnit, Event)
local choix_sorts_5595 = math.random(0, 1)
if choix_sorts_5595 == 0 then
pUnit:RegisterEvent('spell0_5595', 1, 1)
end
if choix_sorts_5595 == 1 then
pUnit:RegisterEvent('spell1_5595', 1, 1)
end
end

function mob5595_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5595', math.random(1500, 3000), 1)
end

function mob5595_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5595_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5595_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5595, 1, 'mob5595_Action')
RegisterUnitEvent(5595, 2, 'mob5595_Leave')
RegisterUnitEvent(5595, 3, 'mob5595_Kill')
RegisterUnitEvent(5595, 4, 'mob5595_Die')
